package com.liqi.step.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: lgh
 * @Date: 2022-12-15
 * @Description: 步骤与事项关联dto
 */
@Data
@ApiModel(value = "步骤与事项关联dto")
public class StepBindServiceDto {
    @ApiModelProperty(value = "事项编码",required = true)
    @NotBlank(message = "事项编码不能为空")
    private String serviceCode;

    @ApiModelProperty(value = "步骤id与排序",required = true)
    @Valid
    private List<StepSortDto> stepSort;

    @ApiModelProperty(value = "备注")
    private String remark;
}
